package petrochina.company.electric.http.api;

import android.os.Parcel;
import android.os.Parcelable;

import com.hjq.http.config.IRequestApi;

/**
 *    desc   : 获取任务列表
 */
public final class TaskListApi implements IRequestApi {

    @Override
    public String getApi() {
        return "oper/getOpertickets";
    }

    private int state;

    public TaskListApi setState(int state) {
        this.state = state;
        return this;
    }

    public final static class Bean implements Parcelable {
        private long id;
        private String name;
        private int state;
        private int staffId;
        private String staffName;
        private int picCode;
        private String picName;
        private int eventId;
        private String eventName;
        private String startTime;
        private String endTime;
        private long checkStaffId;
        private long executeStaffId;
        private String createTime;
        private String remark;
        private int stepCount;

        protected Bean(Parcel in) {
            id = in.readLong();
            name = in.readString();
            state = in.readInt();
            staffId = in.readInt();
            staffName = in.readString();
            picCode = in.readInt();
            picName = in.readString();
            eventId = in.readInt();
            eventName = in.readString();
            startTime = in.readString();
            endTime = in.readString();
            createTime = in.readString();
            checkStaffId = in.readLong();
            executeStaffId = in.readLong();
            remark = in.readString();
            stepCount = in.readInt();
        }

        public static final Creator<Bean> CREATOR = new Creator<Bean>() {
            @Override
            public Bean createFromParcel(Parcel in) {
                return new Bean(in);
            }

            @Override
            public Bean[] newArray(int size) {
                return new Bean[size];
            }
        };

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public int getStaffId() {
            return staffId;
        }

        public void setStaffId(int staffId) {
            this.staffId = staffId;
        }

        public String getStaffName() {
            return staffName;
        }

        public void setStaffName(String staffName) {
            this.staffName = staffName;
        }

        public int getPicCode() {
            return picCode;
        }

        public void setPicCode(int picCode) {
            this.picCode = picCode;
        }

        public String getPicName() {
            return picName;
        }

        public void setPicName(String picName) {
            this.picName = picName;
        }

        public int getEventId() {
            return eventId;
        }

        public void setEventId(int eventId) {
            this.eventId = eventId;
        }

        public String getEventName() {
            return eventName;
        }

        public void setEventName(String eventName) {
            this.eventName = eventName;
        }

        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public long getCheckStaffId() {
            return checkStaffId;
        }

        public void setCheckStaffId(long checkStaffId) {
            this.checkStaffId = checkStaffId;
        }

        public long getExecuteStaffId() {
            return executeStaffId;
        }

        public void setExecuteStaffId(long executeStaffId) {
            this.executeStaffId = executeStaffId;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public int getStepCount() {
            return stepCount;
        }

        public void setStepCount(int stepCount) {
            this.stepCount = stepCount;
        }

        public static Creator<Bean> getCREATOR() {
            return CREATOR;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeLong(this.id);
            parcel.writeString(this.name);
            parcel.writeInt(this.state);
            parcel.writeInt(this.staffId);
            parcel.writeString(this.staffName);
            parcel.writeInt(this.picCode);
            parcel.writeString(this.picName);
            parcel.writeInt(this.eventId);
            parcel.writeString(this.eventName);
            parcel.writeString(this.startTime);
            parcel.writeString(this.endTime);
            parcel.writeString(this.createTime);
            parcel.writeLong(this.checkStaffId);
            parcel.writeLong(this.executeStaffId);
            parcel.writeString(this.remark);
            parcel.writeInt(this.stepCount);
        }
    }
}